#!/bin/sh

CURR_PWD=`pwd`

LIBHTTP_BASE=..

if [ ! -d /usr/local/include/priv ]; then mkdir -p /usr/local/include/priv; fi
if [ ! -d /usr/local/lib ]; then mkdir -p /usr/local/lib; fi
if [ ! -d /usr/local/bin ]; then mkdir -p /usr/local/bin; fi
if [ ! -d /usr/local/man/man1 ]; then mkdir -p /usr/local/man/man1; fi
if [ ! -d /usr/local/man/man3 ]; then mkdir -p /usr/local/man/man3; fi

cp -f $LIBHTTP_BASE/include/libhttp_common.h  /usr/local/include/priv/
cp -f $LIBHTTP_BASE/include/libhttp_def.h     /usr/local/include/priv/
cp -f $LIBHTTP_BASE/include/libhttp_errno.h   /usr/local/include/priv/
cp -f $LIBHTTP_BASE/include/libhttp_headers.h /usr/local/include/priv/
cp -f $LIBHTTP_BASE/include/libhttp_message.h /usr/local/include/priv/
cp -f $LIBHTTP_BASE/include/libhttp_version.h /usr/local/include/priv/
cp -f $LIBHTTP_BASE/lib/libhttp_message.so    /usr/local/lib/
cp -f $LIBHTTP_BASE/man/man1/http_format.1    /usr/local/man/man1/
cp -f $LIBHTTP_BASE/man/man3/HttpMessage*.3    /usr/local/man/man3/

